import 'package:amway_superapp_creator_plugin/provider_setup.dart';
import 'package:flutter/material.dart';
import 'package:flutter_flavor/flutter_flavor.dart';
import 'package:provider/provider.dart';

import 'home_page.dart';

class ExampleApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MultiProvider(
      providers: providers,
      child: FlavorBanner(
        child: MaterialApp(
          title: 'Flutter MVVM',
          debugShowCheckedModeBanner: false,
          theme: ThemeData(
              platform: TargetPlatform.iOS,
              primarySwatch: Colors.blue,
              visualDensity: VisualDensity.adaptivePlatformDensity,
              pageTransitionsTheme: PageTransitionsTheme(builders: {
                TargetPlatform.android: CupertinoPageTransitionsBuilder(),
                TargetPlatform.iOS: CupertinoPageTransitionsBuilder(),
              })),
          home: HomePage(),
        ),
      ),
    );
  }
}
